package com.code.day15;

public class Day15RunnableNI {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 5; i++) {
                    System.out.println(Thread.currentThread().getName()+"执行了:"+i);
                }
            }
        },"刘大胆").start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 5; i++) {
                    System.out.println(Thread.currentThread().getName()+"执行了:"+i);
                }
            }
        },"超级刘大胆").start();
    }
}
